import axios from "axios";
import qs from "qs";
import ToastUtils from "./ToastUtils";

import Uts from "@module/Uts";

// axios.defaults.withCredentials=true

const dev = window.location.port == "8081" ? true : false;
const baseUrl_dev = {
    store: `http://localhost:8032`,
    // store:`http://119.23.132.213:8001`,
    cms: `http://192.168.2.67:8001`,
    // cms:`http://localhost:8032`,
    // search: `http://192.168.2.67:8001`,
    // search: `http://119.23.132.213:8001`,
    search: `http://localhost:8032`
};

const baseUrl_prd = {
    store: ``,
    cms: ``,
    search: ``
};

const baseUrl = dev ? baseUrl_dev : baseUrl_prd;

export default {
    post: function(url, params) {
        if (params) {
            // params.APIVersion = "V2";
        }
        let config = {
            headers: {
                "Content-Type": "application/x-www-form-urlencoded"
            }
        };

        return new Promise((resolve, reject) => {
            axios
                .post(baseUrl.store + url, qs.stringify(params), config)
                .then(res => {
                    ToastUtils.hide();
                    let resObj = res.data;
                    resolve(resObj);
                })
                .catch(err => {
                    ToastUtils.hide();
                    reject(err);
                });
        });
    },

    postJson: function(url, params) {
        if (params) {
            // params.APIVersion = "V2";
        }
        let config = {
            headers: {
                "Content-Type": "application/json"
            }
        };

        // ToastUtils.loading()
        return new Promise((resolve, reject) => {
            axios
                .post(baseUrl.store + url, JSON.stringify(params), config)
                .then(res => {
                    ToastUtils.hide();
                    let resObj = res.data;
                    resolve(resObj);
                })
                .catch(err => {
                    ToastUtils.hide();
                    reject(err);
                });
        });
    },

    cmsPost: function(url, params) {
        if (params) {
            // params.APIVersion = "V2";
        }
        let config = {
            headers: {
                "Content-Type": "application/json"
            }
        };

        return new Promise((resolve, reject) => {
            axios
                .post(baseUrl.cms + url, JSON.stringify(params), config)
                .then(res => {
                    let resObj = res.data;
                    resolve(resObj);
                })
                .catch(err => {
                    reject(err);
                });
        });
    },

    searchPost: function(url, params) {
        if (params) {
            // params.APIVersion = "V2";
        }
        let config = {
            headers: {
                "Content-Type": "application/json"
            }
        };

        return new Promise((resolve, reject) => {
            axios
                .post(baseUrl.search + url, JSON.stringify(params), config)
                .then(res => {
                    ToastUtils.hide();
                    let resObj = res.data;
                    resolve(resObj);
                })
                .catch(err => {
                    ToastUtils.hide();
                    reject(err);
                });
        });
    },

    getConfig: function(options = {}) {
        let headerValue = {
            ...options
        };
        return {
            headers: headerValue
        };
    },

    get: function(baseUrl, url, data) {
        console.log("get",baseUrl,url,data)
        let str = "";
        for (let key in data) {
            str += key + "=" + data[key] + "&";
        }
        let newstr = str.substring(0, str.length - 1);

        var url_ = url;
        if (newstr.length >= 1) {
            url_ = url + "?" + newstr;
        }

        return new Promise((resolve, reject) => {
            axios
                .get(baseUrl + url_)
                .then(res => {
                    ToastUtils.hide();
                    let resObj = res.data;
                    resolve(resObj);
                })
                .catch(err => {
                    ToastUtils.hide();
                    reject(err);
                });
        });
    },

    getStore(url, data) {
        const storeUrl = baseUrl.store;
        return this.get(storeUrl, url, data);
    },

    //1商品展示接口(首页)：
    categoryAndProductList(params) {
        if (global.hasLogin) {
            let url = `/store/api/product/category/findAllCategoriesProducts`;
            let params = {
                // flag: 1
            };

            return this.post(url, params);
        } else {
            let url = `/store/api/new/homepage/categoryAndProductList`;
            let params = { apiVersion: "V2" };
            return this.post(url, params);
        }
    },

    //2顶部导航(首页)
    findHomeNavigation() {
        if (Uts.isLogin() && Uts.getCookie("accrosToken")) {
            let url = `/store/api/product/category/getHomeNavigation`;
            let params = {};
            return this.postJson(url, params);
        } else {
            let url = `/store/api/product/category/findHomeNavigation`;
            let params = {};
            return this.post(url, params);
        }
    },

    // 3获取所有商品分类（首页）
    findHomePageAllCategories() {
        let url = ``;
        let params = {};
        if ($state.params.navigationBar && $state.params.navigationBar == 1) {
            params = { navigationBar: $state.params.navigationBar };
        }
        if (global.hasLogin) {
            url = `/store/api/product/category/findAllCategoriesProducts`;
        } else {
            url = `/store/api/product/category/findHomePageAllCategories`;
        }

        return this.post(url, params);
    },

    findAllCategories() {
        let url = `/store/api/product/category/findAllCategoriesProducts`;
        let params = {
            flag: 0
        };
        return this.post(url, params);
    },

    //4首页轮播图（首页）

    getBNNER() {
        let url = global.hasLogin
            ? `/store/api/awrapper/getHomepageAds`
            : `/store/api/new/homepage/getBNNER`;

        let params = {};
        return this.post(url, params);
    },

    //5获取通知公告(首页)

    onlineNotices(size) {
        let url = `/cms/notice/online_notices`;
        let params = {
            size
        };
        return this.cmsPost(url, params);
    },

    //6,5个热词

    hotword() {
        let url = `/search/hotword`;
        let params = {
            startDate: "2018-01-01 00:00",
            endDate: "2019-12-31 00:00",
            size: 5
        };

        return this.searchPost(url, params);
    },

    //8搜索框输入
    searchInput() {
        let url = `/search/input`;
        let params = {
            query: "s",
            size: 5
        };
        return this.postJson(url, params);
    },

    //9搜索商品接口
    searchProducts(
        searchKeyword,
        suppName,
        brandName,
        casNo,
        minPrice,
        maxPrice,
        suppIds,
        brandIds,
        searchAfter,
        city,
        sort,
        categoryIds,
        pageNo = 1,
        levels,
        specifications
    ) {
        let url = global.hasLogin
            ? `/search/products`
            : `/search/platform/products`;
        let keyValue = searchKeyword;
        if (categoryIds.length > 0) {
            if (
                !$state.params.catName ||
                $state.params.catName == searchKeyword
            ) {
                keyValue = "";
            }
        }
        let params = {
            orgId: Uts.getCookie("orgId") || "",
            key: keyValue,
            suppName: suppIds.length > 0 ? "" : suppName,
            brandName: brandIds.length > 0 ? "" : brandName,
            casNo,
            minPrice,
            maxPrice,
            suppIds,
            brandIds,
            categoryIds,
            searchAfter,
            pageSize: 20,
            city,
            sort,
            pageNo,
            levels,
            specifications
        };
        ToastUtils.loading();
        // console.log(JSON.stringify(params));
        return this.searchPost(url, params);
    },

    //10.搜索供应商接口（首页）登录后
    searchProductsLogin(orgId) {
        if (!dev) {
            let data = {
                totalPage: 90,
                total: 1799,
                code: "0000",
                message: "success",
                products: [
                    {
                        brandName: "DLdevelop(Dldevelop)",
                        name: '无菌手术刀片 <span style="color:#f00">23</span>',
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/c33cdd9f-6b70-43b6-b8f1-05f20e3d671b.png",
                        price: 80.0,
                        minPrice: 80.0,
                        saleAmount: 1,
                        suppId: 1057,
                        productNum: '<span style="color:#f00">23</span>',
                        sn: 100001167744,
                        specification: "/",
                        suppname: "广州黎锐生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "往圣(oneshine)",
                        name: "5×洗脱抗体缓冲液",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/010f550b-f6ea-4fa5-8145-5faf74c738e4.jpg",
                        price: 49.0,
                        minPrice: 49.0,
                        saleAmount: 0,
                        suppId: 1095,
                        productNum: '<span style="color:#f00">23</span>',
                        sn: 100000286177,
                        specification: "5×洗脱抗体缓冲液50ml",
                        suppname: "广州往圣生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "华夏远洋",
                        name: "Cy3标记驴抗山羊IgG(H+L)，A0502",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/e88ca646-a259-432f-ac9d-2f5a4359f3aa.jpg",
                        price: 418.0,
                        minPrice: 418.0,
                        saleAmount: 0,
                        suppId: 435,
                        productNum: 'HX (<span style="color:#f00">23</span>)',
                        sn: 100001454054,
                        specification: "0.05ml",
                        suppname: "北京华夏远洋科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "往圣(oneshine)",
                        name: "Western Blot脱脂奶粉封闭液（1 x in TBST）",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/c19bd248/ba0e7eef-7f5a-447c-8220-6de97c9ac681.jpg",
                        price: 145.0,
                        minPrice: 145.0,
                        saleAmount: 1,
                        suppId: 1095,
                        productNum:
                            'oneshine<span style="color:#f00">23</span>',
                        sn: 100000337312,
                        specification:
                            "Western Blot脱脂奶粉封闭液（1 x in TBST）100ml",
                        suppname: "广州往圣生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "科晶(Crystalgen)",
                        name: "15ML离心管",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/8b9b5667-f33c-412c-b1c4-16c5f9f430d5.png",
                        price: 400.0,
                        minPrice: 400.0,
                        saleAmount: 1,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-2266',
                        sn: 100000251919,
                        specification: "15ML",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "密理博(Merck millipore)",
                        name: "Anti-NLRP3 Antibody",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/db4d0d07-01d7-44a7-8643-c7db5d677400.jpg",
                        price: 2735.0,
                        minPrice: 2735.0,
                        saleAmount: 0,
                        suppId: 816,
                        productNum: 'ABF<span style="color:#f00">23</span>',
                        sn: 100006079981,
                        specification: "100 µg",
                        suppname: "广州市鲁诚生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "10-1300ul长吸头",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/9941f5d0-68aa-4bbe-a5e6-2ae592653c3f.jpg",
                        price: 560.0,
                        minPrice: 560.0,
                        saleAmount: 0,
                        suppId: 138,
                        productNum: '<span style="color:#f00">23</span>-1150',
                        sn: 100004602814,
                        specification: "10包/箱",
                        suppname: "广州谊桥生物实验器材有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "无DNA酶/无RNA酶/无热源  黄色吸头 200UL",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/d81b84c1-baaf-423f-8b09-4676f923bab7.jpg",
                        price: 42.0,
                        minPrice: 42.0,
                        saleAmount: 0,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-3346',
                        sn: 100003029035,
                        specification: "200UL   1000支/包",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "永诺生物",
                        name: "鼠慢性疼痛模型构建",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/8f41dcc4-20e2-4575-8803-961fe6f47259.JPG",
                        price: 600.0,
                        minPrice: 600.0,
                        saleAmount: 0,
                        suppId: 84,
                        productNum: 'YNDW<span style="color:#f00">23</span>',
                        sn: 100001187594,
                        specification: "无",
                        suppname: "广州永诺生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "上海基康",
                        name: "引物探针合成",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 4121.6,
                        minPrice: 4121.6,
                        saleAmount: 0,
                        suppId: 279,
                        productNum: 'A100-<span style="color:#f00">23</span>',
                        sn: 100000136480,
                        specification: "1OD",
                        suppname: "上海基康生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "神鹰牌",
                        name: "10ul吸头盒",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 3.5,
                        minPrice: 3.5,
                        saleAmount: 0,
                        suppId: 251,
                        productNum: 'QC<span style="color:#f00">23</span>',
                        sn: 100000102835,
                        specification: "96孔",
                        suppname: "海门市友好实验器材销售部",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "Viewsold",
                        name: "慢病毒过表达毒液, 1ml, 109TU/ML",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 4880.0,
                        minPrice: 4880.0,
                        saleAmount: 0,
                        suppId: 76,
                        productNum: 'vs<span style="color:#f00">23</span>',
                        sn: 100000057551,
                        specification: "项",
                        suppname: "武汉聚能慧达生物有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "一级代理",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "吉妮欧",
                        name: "Capricorn胎牛血清（北美）",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 5271.5,
                        minPrice: 5271.5,
                        saleAmount: 2,
                        suppId: 35,
                        productNum: 'FBS-<span style="color:#f00">23</span>A',
                        sn: 100003176016,
                        specification: "500ml",
                        suppname: "广州吉妮欧生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "无DNA酶 无RNA酶 白色吸头 10UL",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/6333ae3c-079d-48b6-b9b0-4a1136a78094.jpg",
                        price: 42.0,
                        minPrice: 42.0,
                        saleAmount: 0,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-5104',
                        sn: 100003029033,
                        specification: "10UL",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "巧伊(joyee)",
                        name: "Human IL-21ELISA KIT",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/6ba8c28f-2f43-4539-b063-5337fed677bc.png",
                        price: 2400.0,
                        minPrice: 2400.0,
                        saleAmount: 0,
                        suppId: 263,
                        productNum: 'JEH-<span style="color:#f00">23</span>',
                        sn: 100001444044,
                        specification: "96T",
                        suppname: "广州酶勉生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "蓝吉生物",
                        name: "流式",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 100.0,
                        minPrice: 100.0,
                        saleAmount: 0,
                        suppId: 112,
                        productNum: 'lj-<span style="color:#f00">23</span>',
                        sn: 100000104369,
                        specification: "",
                        suppname: "广州蓝吉生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "14ML摇菌管",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 28.0,
                        minPrice: 28.0,
                        saleAmount: 2,
                        suppId: 281,
                        productNum: '<span style="color:#f00">23</span>-2059',
                        sn: 100005799601,
                        specification: "25个/包",
                        suppname: "广州永津生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "EMSA检测试剂盒",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/22e3d90d-b59b-4c88-903d-f86f3144e28d.jpg",
                        price: 4000.0,
                        minPrice: 4000.0,
                        saleAmount: 1,
                        suppId: 509,
                        productNum: 'YBn<span style="color:#f00">23</span>',
                        sn: 100000749257,
                        specification: "25T",
                        suppname: "上海隐白生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "科晶(Crystalgen)",
                        name: "50ML离心管",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/47dbfabb-79af-4ebc-82a5-c3e1bb35b923.png",
                        price: 580.0,
                        minPrice: 580.0,
                        saleAmount: 1,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-2263',
                        sn: 100000251901,
                        specification: "50ML",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "GBCBIO",
                        name: "臭灵丹酸",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/c19bd248/9eac3a2c-65bc-4a7d-9bdf-820a70d822cb.jpg",
                        price: 3200.0,
                        minPrice: 3200.0,
                        saleAmount: 0,
                        suppId: 113,
                        productNum: 'CL<span style="color:#f00">23</span>',
                        sn: 100005811742,
                        specification: "5mg/瓶",
                        suppname: "广州捷倍斯科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    }
                ],
                searchAfter: [1754.330322265625, 0, 100005811742],
                brands: [
                    {
                        id: 705,
                        name: "陶素(TargetMol)"
                    },
                    {
                        id: 376,
                        name: "MCE(MCE)"
                    },
                    {
                        id: 26,
                        name: "艾菲(Affinity)"
                    },
                    {
                        id: 12,
                        name: "Abbkine"
                    },
                    {
                        id: 1298,
                        name: "美天旎(Miltenyi)"
                    },
                    {
                        id: 462,
                        name: "Pepmic"
                    },
                    {
                        id: 197,
                        name: "瑞博奥生物(RayBiotech)"
                    },
                    {
                        id: 207,
                        name: "SIGMA"
                    },
                    {
                        id: 1458,
                        name: "双尼生物(SoniC)"
                    },
                    {
                        id: 183,
                        name: "派普泰克(PeproTech)"
                    },
                    {
                        id: 282,
                        name: "吉妮欧"
                    },
                    {
                        id: 781,
                        name: "fisherbrand"
                    },
                    {
                        id: 1086,
                        name: "安迪(R&D)"
                    },
                    {
                        id: 1189,
                        name: "bioswamp(bioswamp)"
                    },
                    {
                        id: 538,
                        name: "杭州华安"
                    },
                    {
                        id: 94,
                        name: "Dako(Dako)"
                    },
                    {
                        id: 1338,
                        name: "奇点生物(Qi Dian bio)"
                    },
                    {
                        id: 1466,
                        name: "巧伊(joyee)"
                    },
                    {
                        id: 1218,
                        name: "江莱(JiangLai)"
                    },
                    {
                        id: 1401,
                        name: "EnoGene(南京恩晶)"
                    },
                    {
                        id: 1541,
                        name: "PPL"
                    },
                    {
                        id: 242,
                        name: "博士德(BOSTER)"
                    },
                    {
                        id: 289,
                        name: "凯基生物(KeyGEN)"
                    },
                    {
                        id: 1160,
                        name: "Synaptic Systems"
                    },
                    {
                        id: 686,
                        name: "博精医学"
                    },
                    {
                        id: 101,
                        name: "Epigentek"
                    },
                    {
                        id: 1059,
                        name: "博雅辑因(EdiGene)"
                    },
                    {
                        id: 1244,
                        name: "往圣(oneshine)"
                    },
                    {
                        id: 37,
                        name: "APExBio"
                    },
                    {
                        id: 432,
                        name: "博日"
                    },
                    {
                        id: 692,
                        name: "Telenbiotech"
                    },
                    {
                        id: 88,
                        name: "科晶(Crystalgen)"
                    },
                    {
                        id: 90,
                        name: "武汉华美生物(CUSABIO)"
                    },
                    {
                        id: 96,
                        name: "DB Pharmingen"
                    },
                    {
                        id: 1696,
                        name: "齐正生物(QZBT)"
                    },
                    {
                        id: 29,
                        name: "安捷伦(Agilent)"
                    },
                    {
                        id: 293,
                        name: "康润"
                    },
                    {
                        id: 345,
                        name: "永诺生物"
                    },
                    {
                        id: 62,
                        name: "BIO-RAD"
                    },
                    {
                        id: 49,
                        name: "碧迪(BD)"
                    },
                    {
                        id: 527,
                        name: "拓科达生物"
                    },
                    {
                        id: 1,
                        name: "广州洁特(jet)"
                    },
                    {
                        id: 1006,
                        name: "四正柏(4Abio)"
                    },
                    {
                        id: 1168,
                        name: "伊艾博(EIAab)"
                    },
                    {
                        id: 122,
                        name: "GeneCopoeia(Genecopoeia)"
                    },
                    {
                        id: 131,
                        name: "helixgen"
                    },
                    {
                        id: 161,
                        name: "密理博(Merck millipore)"
                    },
                    {
                        id: 1686,
                        name: "酶免(MEIMIAN)"
                    },
                    {
                        id: 201,
                        name: "圣克鲁斯(Santa Cruz)"
                    },
                    {
                        id: 253,
                        name: "广州佰浩"
                    },
                    {
                        id: 269,
                        name: "汉恒"
                    },
                    {
                        id: 412,
                        name: "瑞沃德"
                    },
                    {
                        id: 421,
                        name: "美仑"
                    },
                    {
                        id: 438,
                        name: "赛库"
                    },
                    {
                        id: 468,
                        name: "focobio"
                    },
                    {
                        id: 582,
                        name: "普诺赛(procell)"
                    },
                    {
                        id: 70,
                        name: "BioVision(BioVision)"
                    },
                    {
                        id: 887,
                        name: "ZytoVision(ZytoVision)"
                    },
                    {
                        id: 1021,
                        name: "博康美(BIOCHEMAR)"
                    },
                    {
                        id: 1051,
                        name: "ThermoFisher(赛默飞)"
                    },
                    {
                        id: 1139,
                        name: "正能(Zen BioScience)"
                    },
                    {
                        id: 118,
                        name: "GBCBIO"
                    },
                    {
                        id: 1308,
                        name: "广誉(GrowGn)"
                    },
                    {
                        id: 1328,
                        name: "宝莱"
                    },
                    {
                        id: 1514,
                        name: "安谱(ANPEL)"
                    },
                    {
                        id: 1640,
                        name: "Cozmo-lab(Cozmo-lab)"
                    },
                    {
                        id: 170,
                        name: "纽英伦(NEB)"
                    },
                    {
                        id: 177,
                        name: "近岸(NovoProtein)"
                    },
                    {
                        id: 1772,
                        name: "Biotech Trading Partners"
                    },
                    {
                        id: 231,
                        name: "Viewsold"
                    },
                    {
                        id: 241,
                        name: "博奥森"
                    },
                    {
                        id: 254,
                        name: "广州佰熙"
                    },
                    {
                        id: 296,
                        name: "蓝吉生物"
                    },
                    {
                        id: 318,
                        name: "赛国"
                    },
                    {
                        id: 357,
                        name: "速聚生物"
                    },
                    {
                        id: 415,
                        name: "索莱宝(solarbio)"
                    },
                    {
                        id: 419,
                        name: "启因生物"
                    },
                    {
                        id: 452,
                        name: "鼎国试剂(Dingguo)"
                    },
                    {
                        id: 487,
                        name: "人源化因子(Stemimmune)"
                    },
                    {
                        id: 5,
                        name: "NUNC"
                    },
                    {
                        id: 503,
                        name: "神鹰牌"
                    },
                    {
                        id: 550,
                        name: "超晶生物"
                    },
                    {
                        id: 553,
                        name: "上海基康"
                    },
                    {
                        id: 560,
                        name: "天骏"
                    },
                    {
                        id: 586,
                        name: "cloud-clone"
                    },
                    {
                        id: 628,
                        name: "吉必酷"
                    },
                    {
                        id: 658,
                        name: "WEST GENE"
                    },
                    {
                        id: 683,
                        name: "上海南模"
                    },
                    {
                        id: 690,
                        name: "达弘"
                    },
                    {
                        id: 695,
                        name: "DLdevelop(Dldevelop)"
                    },
                    {
                        id: 704,
                        name: "维伯鑫"
                    },
                    {
                        id: 754,
                        name: "华夏远洋"
                    },
                    {
                        id: 813,
                        name: "上海子实生物"
                    },
                    {
                        id: 869,
                        name: "赛澜(cell-land)"
                    },
                    {
                        id: 995,
                        name: "淼灵(MiaoLing)"
                    }
                ],
                supps: [
                    {
                        id: 1427,
                        name: "上海陶术生物科技有限公司"
                    },
                    {
                        id: 1180,
                        name: "深圳市凯联生物技术有限公司"
                    },
                    {
                        id: 24,
                        name: "广州天骏生物科技有限公司"
                    },
                    {
                        id: 37,
                        name: "北京华威锐科化工有限公司"
                    },
                    {
                        id: 960,
                        name: "广州泛思生物科技有限公司"
                    },
                    {
                        id: 842,
                        name: "广州塞拉芬生物科技有限公司"
                    },
                    {
                        id: 1224,
                        name: "广州培镨生物科技有限公司"
                    },
                    {
                        id: 149,
                        name: "广州德为生物科技有限公司"
                    },
                    {
                        id: 224,
                        name: "苏州泰米克生物科技有限公司"
                    },
                    {
                        id: 5,
                        name: "西格玛奥德里奇 (上海) 贸易有限公司"
                    },
                    {
                        id: 1106,
                        name: "广州常誉生物科技有限公司"
                    },
                    {
                        id: 1308,
                        name: "广州双尼生物科技有限公司"
                    },
                    {
                        id: 281,
                        name: "广州永津生物科技有限公司"
                    },
                    {
                        id: 1114,
                        name: "广州松鼠生物科技有限公司"
                    },
                    {
                        id: 498,
                        name: "杭州雷琪实验器材有限公司"
                    },
                    {
                        id: 80,
                        name: "中博瑞康（北京）生物技术有限公司"
                    },
                    {
                        id: 258,
                        name: "武汉艾美捷科技有限公司"
                    },
                    {
                        id: 462,
                        name: "杭州华安生物技术有限公司"
                    },
                    {
                        id: 1010,
                        name: "广州奇点生物科技有限公司"
                    },
                    {
                        id: 1042,
                        name: "广州齐湘生物科技有限公司"
                    },
                    {
                        id: 197,
                        name: "广州方源生物科技有限公司"
                    },
                    {
                        id: 263,
                        name: "广州酶勉生物技术有限公司"
                    },
                    {
                        id: 654,
                        name: "广州博仁安康医疗科技有限公司"
                    },
                    {
                        id: 2079,
                        name: "南京晶百生物科技有限公司"
                    },
                    {
                        id: 2297,
                        name: "上海齐正生物科技有限公司"
                    },
                    {
                        id: 277,
                        name: "广州中益生物科技有限公司"
                    },
                    {
                        id: 29,
                        name: "广州斯佳生物科技有限公司"
                    },
                    {
                        id: 73,
                        name: "广州市九星生物科技有限公司"
                    },
                    {
                        id: 1026,
                        name: "武汉华联科生物技术有限公司"
                    },
                    {
                        id: 284,
                        name: "上海华盈生物医药科技有限公司"
                    },
                    {
                        id: 320,
                        name: "北京乐博生物科技有限公司"
                    },
                    {
                        id: 376,
                        name: "广州市博精医学科技有限公司"
                    },
                    {
                        id: 1095,
                        name: "广州往圣生物科技有限公司"
                    },
                    {
                        id: 121,
                        name: "广州博仁生物科技有限公司"
                    },
                    {
                        id: 213,
                        name: "广州虞金乔生物科技有限公司"
                    },
                    {
                        id: 264,
                        name: "广州拓科达生物科技有限公司"
                    },
                    {
                        id: 35,
                        name: "广州吉妮欧生物科技有限公司"
                    },
                    {
                        id: 386,
                        name: "广州天元生物科技有限公司"
                    },
                    {
                        id: 853,
                        name: "博雅缉因（北京）生物科技有限公司"
                    },
                    {
                        id: 1071,
                        name: "武汉贝茵莱生物科技有限公司"
                    },
                    {
                        id: 139,
                        name: "广州佳迈生物科技有限公司"
                    },
                    {
                        id: 152,
                        name: "北京康润诚业生物科技有限公司"
                    },
                    {
                        id: 2092,
                        name: "广州苏铖粤贸易有限公司"
                    },
                    {
                        id: 2848,
                        name: "广州贝特生物科技有限公司"
                    },
                    {
                        id: 84,
                        name: "广州永诺生物科技有限公司"
                    },
                    {
                        id: 175,
                        name: "广州维伯鑫生物科技有限公司"
                    },
                    {
                        id: 543,
                        name: "广州阳佳生物科技有限公司"
                    },
                    {
                        id: 1302,
                        name: "成都广泰怡华生物科技有限公司"
                    },
                    {
                        id: 144,
                        name: "汉恒生物科技（上海）有限公司"
                    },
                    {
                        id: 1463,
                        name: "广州采驰生物科技有限公司"
                    },
                    {
                        id: 148,
                        name: "广州好芝生物科技有限公司"
                    },
                    {
                        id: 194,
                        name: "深圳市瑞沃德生命科技有限公司"
                    },
                    {
                        id: 218,
                        name: "广州赛库生物技术有限公司"
                    },
                    {
                        id: 231,
                        name: "广州市外显子生物技术有限公司"
                    },
                    {
                        id: 432,
                        name: "广州东巨实验仪器有限公司"
                    },
                    {
                        id: 655,
                        name: "宏兴生物科技有限责任公司"
                    },
                    {
                        id: 754,
                        name: "广州乐臣生物科技有限公司"
                    },
                    {
                        id: 759,
                        name: "广州思晋生物科技有限公司"
                    },
                    {
                        id: 799,
                        name: "广州瑞舒生物科技有限公司"
                    },
                    {
                        id: 816,
                        name: "广州市鲁诚生物科技有限公司"
                    },
                    {
                        id: 901,
                        name: "广州广誉生物科技有限公司"
                    },
                    {
                        id: 94,
                        name: "广州佰浩生物技术有限公司"
                    },
                    {
                        id: 105,
                        name: "广州速聚生物科技有限公司"
                    },
                    {
                        id: 1057,
                        name: "广州黎锐生物科技有限公司"
                    },
                    {
                        id: 108,
                        name: "广州市宝迪科技有限公司"
                    },
                    {
                        id: 112,
                        name: "广州蓝吉生物技术有限公司"
                    },
                    {
                        id: 113,
                        name: "广州捷倍斯科技有限公司"
                    },
                    {
                        id: 116,
                        name: "广州鼎国生物技术有限公司"
                    },
                    {
                        id: 1283,
                        name: "广州美仑生物科技有限公司"
                    },
                    {
                        id: 1289,
                        name: "广州汇典生物技术有限公司"
                    },
                    {
                        id: 138,
                        name: "广州谊桥生物实验器材有限公司"
                    },
                    {
                        id: 1542,
                        name: "广州元丰科技有限公司"
                    },
                    {
                        id: 199,
                        name: "广州碧天生物科技有限公司"
                    },
                    {
                        id: 202,
                        name: "上海启因生物科技有限公司"
                    },
                    {
                        id: 2339,
                        name: "广州亚历山生物科技有限公司"
                    },
                    {
                        id: 243,
                        name: "广州欣天睿生物科技有限公司"
                    },
                    {
                        id: 251,
                        name: "海门市友好实验器材销售部"
                    },
                    {
                        id: 276,
                        name: "上海超晶生物科技有限公司"
                    },
                    {
                        id: 279,
                        name: "上海基康生物技术有限公司"
                    },
                    {
                        id: 332,
                        name: "上海安谱实验科技股份有限公司"
                    },
                    {
                        id: 339,
                        name: "广州吉必酷生物科技有限公司"
                    },
                    {
                        id: 364,
                        name: "广州耀怡生物科技有限公司"
                    },
                    {
                        id: 367,
                        name: "西基（上海）生物科技有限公司"
                    },
                    {
                        id: 374,
                        name: "上海南方模式生物科技股份有限公司"
                    },
                    {
                        id: 384,
                        name: "广州达弘生物科技有限公司"
                    },
                    {
                        id: 427,
                        name: "广州巨维商贸有限公司"
                    },
                    {
                        id: 435,
                        name: "北京华夏远洋科技有限公司"
                    },
                    {
                        id: 452,
                        name: "赛澜生物技术（杭州）有限公司"
                    },
                    {
                        id: 499,
                        name: "北京博奥森生物技术有限公司"
                    },
                    {
                        id: 509,
                        name: "上海隐白生物科技有限公司"
                    },
                    {
                        id: 539,
                        name: "广州君胜生物科技有限公司"
                    },
                    {
                        id: 563,
                        name: "北京盛科博源生物科技有限公司"
                    },
                    {
                        id: 568,
                        name: "上海子实生物科技有限公司"
                    },
                    {
                        id: 588,
                        name: "杭州昊鑫生物科技股份有限公司"
                    },
                    {
                        id: 59,
                        name: "广州市搏克生物技术有限公司"
                    },
                    {
                        id: 741,
                        name: "广州萃本生物科技有限公司"
                    },
                    {
                        id: 76,
                        name: "武汉聚能慧达生物有限公司"
                    },
                    {
                        id: 796,
                        name: "广州齐凯生物科技有限公司"
                    },
                    {
                        id: 868,
                        name: "广州睿日生物科技有限公司"
                    },
                    {
                        id: 911,
                        name: "武汉华美生物工程有限公司"
                    },
                    {
                        id: 95,
                        name: "广州佰熙生物技术有限公司"
                    }
                ],
                levels: [
                    {
                        id: 100,
                        name: "全国总代理"
                    },
                    {
                        id: 1,
                        name: "一级代理"
                    },
                    {
                        id: 0,
                        name: "生产厂家"
                    },
                    {
                        id: 4,
                        name: "经销"
                    }
                ],
                specifications: [
                    "100ul",
                    "10mg",
                    "5mg",
                    "50mg",
                    "100mg",
                    "50ul",
                    "200ul",
                    "10mM/1mL",
                    "96T",
                    "2mg",
                    "200mg",
                    "25mg",
                    "1mg",
                    "1盒",
                    "30ul",
                    "10 mM * 1 mL (in DMSO)",
                    "48T",
                    "500ul菌液",
                    "20mg",
                    "500mg",
                    "1.0 mg/vial",
                    "1×96 well",
                    "2ug",
                    "96T*5",
                    "96T*50",
                    "100ug",
                    "1g",
                    "1mg/vial",
                    "30ug/ul",
                    "400ul",
                    "0.5 mg/vial",
                    "20ug",
                    "50ug",
                    "5g",
                    "5ug",
                    "100 tests",
                    "100 µg",
                    "1000mg",
                    "100T,1ml",
                    "10^6 cells/tube",
                    "10ug",
                    "1ml",
                    "1.0 mg/vial",
                    "10 UG",
                    "250mg",
                    "25T",
                    "400 µl",
                    "50 UG",
                    "80 samples",
                    "100T",
                    "100次",
                    "10MG",
                    "1MG",
                    "1x 10^6 cells/瓶",
                    "2管",
                    "48 tests",
                    "50G",
                    "50MG",
                    "50T",
                    "5MG",
                    "96 assays",
                    "96 tests",
                    "96t",
                    "T25",
                    "0,05 ml",
                    "0.1 mg",
                    "1.0 ml",
                    "100G",
                    "100MG",
                    "10G",
                    "1KG",
                    "1g/vial",
                    "1支/包，150支/箱",
                    "200 µg/ml",
                    "25 UG",
                    "25 tests",
                    "2500mg",
                    "250G",
                    "4 samples",
                    "48 assays",
                    "48t",
                    "5.0 mg/vial",
                    "5.0 mg/vial",
                    "500 tests",
                    "5000mg",
                    "50T,0.5ml",
                    "瓶",
                    "\t20 µl",
                    "----",
                    "-----",
                    "/",
                    "0.05ml",
                    "0.1ml",
                    "0.2ML",
                    "1 mg",
                    "1*10^6个/vial",
                    "1.0 A260 units",
                    "1.5Ml ",
                    "10 µL",
                    "100 Tests"
                ],
                categoryIds: [
                    {
                        id: 243,
                        name: "细胞生物学"
                    },
                    {
                        id: 101,
                        name: "培养/冻存类"
                    },
                    {
                        id: 102,
                        name: "PCR/电泳类"
                    },
                    {
                        id: 229,
                        name: "免疫学"
                    },
                    {
                        id: 107,
                        name: "移液类"
                    },
                    {
                        id: 109,
                        name: "玻璃/石英/陶瓷器皿"
                    },
                    {
                        id: 112,
                        name: "橡胶/塑料计量/储液容器"
                    },
                    {
                        id: 211,
                        name: "生物医学服务"
                    },
                    {
                        id: 117,
                        name: "色谱柱"
                    },
                    {
                        id: 216,
                        name: "常规试剂"
                    },
                    {
                        id: 217,
                        name: "分子生物学"
                    },
                    {
                        id: 231,
                        name: "蛋白组学"
                    },
                    {
                        id: 542,
                        name: "微生物学"
                    },
                    {
                        id: 251,
                        name: "动物种类"
                    },
                    {
                        id: 253,
                        name: "动物实验工具"
                    },
                    {
                        id: 613,
                        name: "安全防护类"
                    }
                ]
            };
            return new Promise((resolve, reject) => {
                resolve(data);
            });
        }

        let url = `/search/products`;
        let params = {
            orgId: orgId,
            key: "ssss",
            suppName: "",
            brandName: "",
            casNo: "",
            minPrice: "",
            maxPrice: "",
            suppIds: [],
            brandIds: [],
            categoryIds: [],
            searchAfter: null,
            pageSize: 20,
            city: "",
            sort: ""
        };

        return this.searchPost(url, params);
    },

    searchBrandlist(brandName) {
        let url = global.hasLogin
            ? `/search/products`
            : `/search/platform/products`;
        let params = {
            orgId: Uts.getCookie("orgId") || "",
            key: "",
            suppName: "",
            brandName: brandName,
            casNo: "",
            minPrice: "",
            maxPrice: "",
            suppIds: [],
            brandIds: [],
            categoryIds: [],
            searchAfter: null,
            pageSize: 200,
            city: "",
            sort: ""
        };
        ToastUtils.loading();
        return this.searchPost(url, params);
    },

    searchSupplist(suppName) {
        let url = global.hasLogin
            ? `/search/products`
            : `/search/platform/products`;
        let params = {
            orgId: Uts.getCookie("orgId") || "",
            key: "",
            suppName: suppName,
            brandName: "",
            casNo: "",
            minPrice: "",
            maxPrice: "",
            suppIds: [],
            brandIds: [],
            categoryIds: [],
            searchAfter: null,
            pageSize: 200,
            city: "",
            sort: ""
        };
        ToastUtils.loading();
        return this.searchPost(url, params);
    },

    searchSupplier(suppName) {
        let url = global.hasLogin
            ? `/search/products`
            : `/search/platform/products`;
        let params = {
            orgId: Uts.getCookie("orgId") || "",
            key: "",
            suppName: suppName,
            brandName: "",
            casNo: "",
            minPrice: "",
            maxPrice: "",
            suppIds: [],
            brandIds: [],
            categoryIds: [],
            searchAfter: null,
            pageSize: 20,
            city: "",
            sort: ""
        };
        ToastUtils.loading();

        return this.searchPost(url, params);
    },

    //11.获取个人信息(涉及单点登录相关逻辑)
    getIdentity() {
        let url = `/store/api/identity`;
        let params = {};
        return this.getStore(url, params);
    },

    //12.高级搜索接口
    highLevelSearch() {
        if (dev) {
            let data = {
                totalPage: 90,
                total: 1799,
                code: "0000",
                message: "success",
                products: [
                    {
                        brandName: "DLdevelop(Dldevelop)",
                        name: '无菌手术刀片 <span style="color:#f00">23</span>',
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/c33cdd9f-6b70-43b6-b8f1-05f20e3d671b.png",
                        price: 80.0,
                        minPrice: 80.0,
                        saleAmount: 1,
                        suppId: 1057,
                        productNum: '<span style="color:#f00">23</span>',
                        sn: 100001167744,
                        specification: "/",
                        suppname: "广州黎锐生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "往圣(oneshine)",
                        name: "5×洗脱抗体缓冲液",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/010f550b-f6ea-4fa5-8145-5faf74c738e4.jpg",
                        price: 49.0,
                        minPrice: 49.0,
                        saleAmount: 0,
                        suppId: 1095,
                        productNum: '<span style="color:#f00">23</span>',
                        sn: 100000286177,
                        specification: "5×洗脱抗体缓冲液50ml",
                        suppname: "广州往圣生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "华夏远洋",
                        name: "Cy3标记驴抗山羊IgG(H+L)，A0502",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/e88ca646-a259-432f-ac9d-2f5a4359f3aa.jpg",
                        price: 418.0,
                        minPrice: 418.0,
                        saleAmount: 0,
                        suppId: 435,
                        productNum: 'HX (<span style="color:#f00">23</span>)',
                        sn: 100001454054,
                        specification: "0.05ml",
                        suppname: "北京华夏远洋科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "往圣(oneshine)",
                        name: "Western Blot脱脂奶粉封闭液（1 x in TBST）",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/c19bd248/ba0e7eef-7f5a-447c-8220-6de97c9ac681.jpg",
                        price: 145.0,
                        minPrice: 145.0,
                        saleAmount: 1,
                        suppId: 1095,
                        productNum:
                            'oneshine<span style="color:#f00">23</span>',
                        sn: 100000337312,
                        specification:
                            "Western Blot脱脂奶粉封闭液（1 x in TBST）100ml",
                        suppname: "广州往圣生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "科晶(Crystalgen)",
                        name: "15ML离心管",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/8b9b5667-f33c-412c-b1c4-16c5f9f430d5.png",
                        price: 400.0,
                        minPrice: 400.0,
                        saleAmount: 1,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-2266',
                        sn: 100000251919,
                        specification: "15ML",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "密理博(Merck millipore)",
                        name: "Anti-NLRP3 Antibody",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/db4d0d07-01d7-44a7-8643-c7db5d677400.jpg",
                        price: 2735.0,
                        minPrice: 2735.0,
                        saleAmount: 0,
                        suppId: 816,
                        productNum: 'ABF<span style="color:#f00">23</span>',
                        sn: 100006079981,
                        specification: "100 µg",
                        suppname: "广州市鲁诚生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "10-1300ul长吸头",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/9941f5d0-68aa-4bbe-a5e6-2ae592653c3f.jpg",
                        price: 560.0,
                        minPrice: 560.0,
                        saleAmount: 0,
                        suppId: 138,
                        productNum: '<span style="color:#f00">23</span>-1150',
                        sn: 100004602814,
                        specification: "10包/箱",
                        suppname: "广州谊桥生物实验器材有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "无DNA酶/无RNA酶/无热源  黄色吸头 200UL",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/d81b84c1-baaf-423f-8b09-4676f923bab7.jpg",
                        price: 42.0,
                        minPrice: 42.0,
                        saleAmount: 0,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-3346',
                        sn: 100003029035,
                        specification: "200UL   1000支/包",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "永诺生物",
                        name: "鼠慢性疼痛模型构建",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/8f41dcc4-20e2-4575-8803-961fe6f47259.JPG",
                        price: 600.0,
                        minPrice: 600.0,
                        saleAmount: 0,
                        suppId: 84,
                        productNum: 'YNDW<span style="color:#f00">23</span>',
                        sn: 100001187594,
                        specification: "无",
                        suppname: "广州永诺生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "上海基康",
                        name: "引物探针合成",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 4121.6,
                        minPrice: 4121.6,
                        saleAmount: 0,
                        suppId: 279,
                        productNum: 'A100-<span style="color:#f00">23</span>',
                        sn: 100000136480,
                        specification: "1OD",
                        suppname: "上海基康生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "神鹰牌",
                        name: "10ul吸头盒",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 3.5,
                        minPrice: 3.5,
                        saleAmount: 0,
                        suppId: 251,
                        productNum: 'QC<span style="color:#f00">23</span>',
                        sn: 100000102835,
                        specification: "96孔",
                        suppname: "海门市友好实验器材销售部",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "Viewsold",
                        name: "慢病毒过表达毒液, 1ml, 109TU/ML",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 4880.0,
                        minPrice: 4880.0,
                        saleAmount: 0,
                        suppId: 76,
                        productNum: 'vs<span style="color:#f00">23</span>',
                        sn: 100000057551,
                        specification: "项",
                        suppname: "武汉聚能慧达生物有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "一级代理",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "吉妮欧",
                        name: "Capricorn胎牛血清（北美）",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 5271.5,
                        minPrice: 5271.5,
                        saleAmount: 2,
                        suppId: 35,
                        productNum: 'FBS-<span style="color:#f00">23</span>A',
                        sn: 100003176016,
                        specification: "500ml",
                        suppname: "广州吉妮欧生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "无DNA酶 无RNA酶 白色吸头 10UL",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/6333ae3c-079d-48b6-b9b0-4a1136a78094.jpg",
                        price: 42.0,
                        minPrice: 42.0,
                        saleAmount: 0,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-5104',
                        sn: 100003029033,
                        specification: "10UL",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "巧伊(joyee)",
                        name: "Human IL-21ELISA KIT",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/6ba8c28f-2f43-4539-b063-5337fed677bc.png",
                        price: 2400.0,
                        minPrice: 2400.0,
                        saleAmount: 0,
                        suppId: 263,
                        productNum: 'JEH-<span style="color:#f00">23</span>',
                        sn: 100001444044,
                        specification: "96T",
                        suppname: "广州酶勉生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "蓝吉生物",
                        name: "流式",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 100.0,
                        minPrice: 100.0,
                        saleAmount: 0,
                        suppId: 112,
                        productNum: 'lj-<span style="color:#f00">23</span>',
                        sn: 100000104369,
                        specification: "",
                        suppname: "广州蓝吉生物技术有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "14ML摇菌管",
                        photo:
                            "https://images.rjmart.cn/images/def/product.png",
                        price: 28.0,
                        minPrice: 28.0,
                        saleAmount: 2,
                        suppId: 281,
                        productNum: '<span style="color:#f00">23</span>-2059',
                        sn: 100005799601,
                        specification: "25个/包",
                        suppname: "广州永津生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: null,
                        name: "EMSA检测试剂盒",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/22e3d90d-b59b-4c88-903d-f86f3144e28d.jpg",
                        price: 4000.0,
                        minPrice: 4000.0,
                        saleAmount: 1,
                        suppId: 509,
                        productNum: 'YBn<span style="color:#f00">23</span>',
                        sn: 100000749257,
                        specification: "25T",
                        suppname: "上海隐白生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "科晶(Crystalgen)",
                        name: "50ML离心管",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/d15682ec/47dbfabb-79af-4ebc-82a5-c3e1bb35b923.png",
                        price: 580.0,
                        minPrice: 580.0,
                        saleAmount: 1,
                        suppId: 1042,
                        productNum: '<span style="color:#f00">23</span>-2263',
                        sn: 100000251901,
                        specification: "50ML",
                        suppname: "广州齐湘生物科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    },
                    {
                        brandName: "GBCBIO",
                        name: "臭灵丹酸",
                        photo:
                            "http://www.rjmart.cn/download/reagent/image/c19bd248/9eac3a2c-65bc-4a7d-9bdf-820a70d822cb.jpg",
                        price: 3200.0,
                        minPrice: 3200.0,
                        saleAmount: 0,
                        suppId: 113,
                        productNum: 'CL<span style="color:#f00">23</span>',
                        sn: 100005811742,
                        specification: "5mg/瓶",
                        suppname: "广州捷倍斯科技有限公司",
                        casNo: null,
                        dangerousTag: "其他",
                        agencyName: "生产厂家",
                        suppflag: 0,
                        attrItems: [],
                        lowestPrice: false,
                        activityPrice: false,
                        negotiatedPrice: false,
                        groupBuying: false
                    }
                ],
                searchAfter: [1754.330322265625, 0, 100005811742],
                brands: [
                    {
                        id: 705,
                        name: "陶素(TargetMol)"
                    },
                    {
                        id: 376,
                        name: "MCE(MCE)"
                    },
                    {
                        id: 26,
                        name: "艾菲(Affinity)"
                    },
                    {
                        id: 12,
                        name: "Abbkine"
                    },
                    {
                        id: 1298,
                        name: "美天旎(Miltenyi)"
                    },
                    {
                        id: 462,
                        name: "Pepmic"
                    },
                    {
                        id: 197,
                        name: "瑞博奥生物(RayBiotech)"
                    },
                    {
                        id: 207,
                        name: "SIGMA"
                    },
                    {
                        id: 1458,
                        name: "双尼生物(SoniC)"
                    },
                    {
                        id: 183,
                        name: "派普泰克(PeproTech)"
                    },
                    {
                        id: 282,
                        name: "吉妮欧"
                    },
                    {
                        id: 781,
                        name: "fisherbrand"
                    },
                    {
                        id: 1086,
                        name: "安迪(R&D)"
                    },
                    {
                        id: 1189,
                        name: "bioswamp(bioswamp)"
                    },
                    {
                        id: 538,
                        name: "杭州华安"
                    },
                    {
                        id: 94,
                        name: "Dako(Dako)"
                    },
                    {
                        id: 1338,
                        name: "奇点生物(Qi Dian bio)"
                    },
                    {
                        id: 1466,
                        name: "巧伊(joyee)"
                    },
                    {
                        id: 1218,
                        name: "江莱(JiangLai)"
                    },
                    {
                        id: 1401,
                        name: "EnoGene(南京恩晶)"
                    },
                    {
                        id: 1541,
                        name: "PPL"
                    },
                    {
                        id: 242,
                        name: "博士德(BOSTER)"
                    },
                    {
                        id: 289,
                        name: "凯基生物(KeyGEN)"
                    },
                    {
                        id: 1160,
                        name: "Synaptic Systems"
                    },
                    {
                        id: 686,
                        name: "博精医学"
                    },
                    {
                        id: 101,
                        name: "Epigentek"
                    },
                    {
                        id: 1059,
                        name: "博雅辑因(EdiGene)"
                    },
                    {
                        id: 1244,
                        name: "往圣(oneshine)"
                    },
                    {
                        id: 37,
                        name: "APExBio"
                    },
                    {
                        id: 432,
                        name: "博日"
                    },
                    {
                        id: 692,
                        name: "Telenbiotech"
                    },
                    {
                        id: 88,
                        name: "科晶(Crystalgen)"
                    },
                    {
                        id: 90,
                        name: "武汉华美生物(CUSABIO)"
                    },
                    {
                        id: 96,
                        name: "DB Pharmingen"
                    },
                    {
                        id: 1696,
                        name: "齐正生物(QZBT)"
                    },
                    {
                        id: 29,
                        name: "安捷伦(Agilent)"
                    },
                    {
                        id: 293,
                        name: "康润"
                    },
                    {
                        id: 345,
                        name: "永诺生物"
                    },
                    {
                        id: 62,
                        name: "BIO-RAD"
                    },
                    {
                        id: 49,
                        name: "碧迪(BD)"
                    },
                    {
                        id: 527,
                        name: "拓科达生物"
                    },
                    {
                        id: 1,
                        name: "广州洁特(jet)"
                    },
                    {
                        id: 1006,
                        name: "四正柏(4Abio)"
                    },
                    {
                        id: 1168,
                        name: "伊艾博(EIAab)"
                    },
                    {
                        id: 122,
                        name: "GeneCopoeia(Genecopoeia)"
                    },
                    {
                        id: 131,
                        name: "helixgen"
                    },
                    {
                        id: 161,
                        name: "密理博(Merck millipore)"
                    },
                    {
                        id: 1686,
                        name: "酶免(MEIMIAN)"
                    },
                    {
                        id: 201,
                        name: "圣克鲁斯(Santa Cruz)"
                    },
                    {
                        id: 253,
                        name: "广州佰浩"
                    },
                    {
                        id: 269,
                        name: "汉恒"
                    },
                    {
                        id: 412,
                        name: "瑞沃德"
                    },
                    {
                        id: 421,
                        name: "美仑"
                    },
                    {
                        id: 438,
                        name: "赛库"
                    },
                    {
                        id: 468,
                        name: "focobio"
                    },
                    {
                        id: 582,
                        name: "普诺赛(procell)"
                    },
                    {
                        id: 70,
                        name: "BioVision(BioVision)"
                    },
                    {
                        id: 887,
                        name: "ZytoVision(ZytoVision)"
                    },
                    {
                        id: 1021,
                        name: "博康美(BIOCHEMAR)"
                    },
                    {
                        id: 1051,
                        name: "ThermoFisher(赛默飞)"
                    },
                    {
                        id: 1139,
                        name: "正能(Zen BioScience)"
                    },
                    {
                        id: 118,
                        name: "GBCBIO"
                    },
                    {
                        id: 1308,
                        name: "广誉(GrowGn)"
                    },
                    {
                        id: 1328,
                        name: "宝莱"
                    },
                    {
                        id: 1514,
                        name: "安谱(ANPEL)"
                    },
                    {
                        id: 1640,
                        name: "Cozmo-lab(Cozmo-lab)"
                    },
                    {
                        id: 170,
                        name: "纽英伦(NEB)"
                    },
                    {
                        id: 177,
                        name: "近岸(NovoProtein)"
                    },
                    {
                        id: 1772,
                        name: "Biotech Trading Partners"
                    },
                    {
                        id: 231,
                        name: "Viewsold"
                    },
                    {
                        id: 241,
                        name: "博奥森"
                    },
                    {
                        id: 254,
                        name: "广州佰熙"
                    },
                    {
                        id: 296,
                        name: "蓝吉生物"
                    },
                    {
                        id: 318,
                        name: "赛国"
                    },
                    {
                        id: 357,
                        name: "速聚生物"
                    },
                    {
                        id: 415,
                        name: "索莱宝(solarbio)"
                    },
                    {
                        id: 419,
                        name: "启因生物"
                    },
                    {
                        id: 452,
                        name: "鼎国试剂(Dingguo)"
                    },
                    {
                        id: 487,
                        name: "人源化因子(Stemimmune)"
                    },
                    {
                        id: 5,
                        name: "NUNC"
                    },
                    {
                        id: 503,
                        name: "神鹰牌"
                    },
                    {
                        id: 550,
                        name: "超晶生物"
                    },
                    {
                        id: 553,
                        name: "上海基康"
                    },
                    {
                        id: 560,
                        name: "天骏"
                    },
                    {
                        id: 586,
                        name: "cloud-clone"
                    },
                    {
                        id: 628,
                        name: "吉必酷"
                    },
                    {
                        id: 658,
                        name: "WEST GENE"
                    },
                    {
                        id: 683,
                        name: "上海南模"
                    },
                    {
                        id: 690,
                        name: "达弘"
                    },
                    {
                        id: 695,
                        name: "DLdevelop(Dldevelop)"
                    },
                    {
                        id: 704,
                        name: "维伯鑫"
                    },
                    {
                        id: 754,
                        name: "华夏远洋"
                    },
                    {
                        id: 813,
                        name: "上海子实生物"
                    },
                    {
                        id: 869,
                        name: "赛澜(cell-land)"
                    },
                    {
                        id: 995,
                        name: "淼灵(MiaoLing)"
                    }
                ],
                supps: [
                    {
                        id: 1427,
                        name: "上海陶术生物科技有限公司"
                    },
                    {
                        id: 1180,
                        name: "深圳市凯联生物技术有限公司"
                    },
                    {
                        id: 24,
                        name: "广州天骏生物科技有限公司"
                    },
                    {
                        id: 37,
                        name: "北京华威锐科化工有限公司"
                    },
                    {
                        id: 960,
                        name: "广州泛思生物科技有限公司"
                    },
                    {
                        id: 842,
                        name: "广州塞拉芬生物科技有限公司"
                    },
                    {
                        id: 1224,
                        name: "广州培镨生物科技有限公司"
                    },
                    {
                        id: 149,
                        name: "广州德为生物科技有限公司"
                    },
                    {
                        id: 224,
                        name: "苏州泰米克生物科技有限公司"
                    },
                    {
                        id: 5,
                        name: "西格玛奥德里奇 (上海) 贸易有限公司"
                    },
                    {
                        id: 1106,
                        name: "广州常誉生物科技有限公司"
                    },
                    {
                        id: 1308,
                        name: "广州双尼生物科技有限公司"
                    },
                    {
                        id: 281,
                        name: "广州永津生物科技有限公司"
                    },
                    {
                        id: 1114,
                        name: "广州松鼠生物科技有限公司"
                    },
                    {
                        id: 498,
                        name: "杭州雷琪实验器材有限公司"
                    },
                    {
                        id: 80,
                        name: "中博瑞康（北京）生物技术有限公司"
                    },
                    {
                        id: 258,
                        name: "武汉艾美捷科技有限公司"
                    },
                    {
                        id: 462,
                        name: "杭州华安生物技术有限公司"
                    },
                    {
                        id: 1010,
                        name: "广州奇点生物科技有限公司"
                    },
                    {
                        id: 1042,
                        name: "广州齐湘生物科技有限公司"
                    },
                    {
                        id: 197,
                        name: "广州方源生物科技有限公司"
                    },
                    {
                        id: 263,
                        name: "广州酶勉生物技术有限公司"
                    },
                    {
                        id: 654,
                        name: "广州博仁安康医疗科技有限公司"
                    },
                    {
                        id: 2079,
                        name: "南京晶百生物科技有限公司"
                    },
                    {
                        id: 2297,
                        name: "上海齐正生物科技有限公司"
                    },
                    {
                        id: 277,
                        name: "广州中益生物科技有限公司"
                    },
                    {
                        id: 29,
                        name: "广州斯佳生物科技有限公司"
                    },
                    {
                        id: 73,
                        name: "广州市九星生物科技有限公司"
                    },
                    {
                        id: 1026,
                        name: "武汉华联科生物技术有限公司"
                    },
                    {
                        id: 284,
                        name: "上海华盈生物医药科技有限公司"
                    },
                    {
                        id: 320,
                        name: "北京乐博生物科技有限公司"
                    },
                    {
                        id: 376,
                        name: "广州市博精医学科技有限公司"
                    },
                    {
                        id: 1095,
                        name: "广州往圣生物科技有限公司"
                    },
                    {
                        id: 121,
                        name: "广州博仁生物科技有限公司"
                    },
                    {
                        id: 213,
                        name: "广州虞金乔生物科技有限公司"
                    },
                    {
                        id: 264,
                        name: "广州拓科达生物科技有限公司"
                    },
                    {
                        id: 35,
                        name: "广州吉妮欧生物科技有限公司"
                    },
                    {
                        id: 386,
                        name: "广州天元生物科技有限公司"
                    },
                    {
                        id: 853,
                        name: "博雅缉因（北京）生物科技有限公司"
                    },
                    {
                        id: 1071,
                        name: "武汉贝茵莱生物科技有限公司"
                    },
                    {
                        id: 139,
                        name: "广州佳迈生物科技有限公司"
                    },
                    {
                        id: 152,
                        name: "北京康润诚业生物科技有限公司"
                    },
                    {
                        id: 2092,
                        name: "广州苏铖粤贸易有限公司"
                    },
                    {
                        id: 2848,
                        name: "广州贝特生物科技有限公司"
                    },
                    {
                        id: 84,
                        name: "广州永诺生物科技有限公司"
                    },
                    {
                        id: 175,
                        name: "广州维伯鑫生物科技有限公司"
                    },
                    {
                        id: 543,
                        name: "广州阳佳生物科技有限公司"
                    },
                    {
                        id: 1302,
                        name: "成都广泰怡华生物科技有限公司"
                    },
                    {
                        id: 144,
                        name: "汉恒生物科技（上海）有限公司"
                    },
                    {
                        id: 1463,
                        name: "广州采驰生物科技有限公司"
                    },
                    {
                        id: 148,
                        name: "广州好芝生物科技有限公司"
                    },
                    {
                        id: 194,
                        name: "深圳市瑞沃德生命科技有限公司"
                    },
                    {
                        id: 218,
                        name: "广州赛库生物技术有限公司"
                    },
                    {
                        id: 231,
                        name: "广州市外显子生物技术有限公司"
                    },
                    {
                        id: 432,
                        name: "广州东巨实验仪器有限公司"
                    },
                    {
                        id: 655,
                        name: "宏兴生物科技有限责任公司"
                    },
                    {
                        id: 754,
                        name: "广州乐臣生物科技有限公司"
                    },
                    {
                        id: 759,
                        name: "广州思晋生物科技有限公司"
                    },
                    {
                        id: 799,
                        name: "广州瑞舒生物科技有限公司"
                    },
                    {
                        id: 816,
                        name: "广州市鲁诚生物科技有限公司"
                    },
                    {
                        id: 901,
                        name: "广州广誉生物科技有限公司"
                    },
                    {
                        id: 94,
                        name: "广州佰浩生物技术有限公司"
                    },
                    {
                        id: 105,
                        name: "广州速聚生物科技有限公司"
                    },
                    {
                        id: 1057,
                        name: "广州黎锐生物科技有限公司"
                    },
                    {
                        id: 108,
                        name: "广州市宝迪科技有限公司"
                    },
                    {
                        id: 112,
                        name: "广州蓝吉生物技术有限公司"
                    },
                    {
                        id: 113,
                        name: "广州捷倍斯科技有限公司"
                    },
                    {
                        id: 116,
                        name: "广州鼎国生物技术有限公司"
                    },
                    {
                        id: 1283,
                        name: "广州美仑生物科技有限公司"
                    },
                    {
                        id: 1289,
                        name: "广州汇典生物技术有限公司"
                    },
                    {
                        id: 138,
                        name: "广州谊桥生物实验器材有限公司"
                    },
                    {
                        id: 1542,
                        name: "广州元丰科技有限公司"
                    },
                    {
                        id: 199,
                        name: "广州碧天生物科技有限公司"
                    },
                    {
                        id: 202,
                        name: "上海启因生物科技有限公司"
                    },
                    {
                        id: 2339,
                        name: "广州亚历山生物科技有限公司"
                    },
                    {
                        id: 243,
                        name: "广州欣天睿生物科技有限公司"
                    },
                    {
                        id: 251,
                        name: "海门市友好实验器材销售部"
                    },
                    {
                        id: 276,
                        name: "上海超晶生物科技有限公司"
                    },
                    {
                        id: 279,
                        name: "上海基康生物技术有限公司"
                    },
                    {
                        id: 332,
                        name: "上海安谱实验科技股份有限公司"
                    },
                    {
                        id: 339,
                        name: "广州吉必酷生物科技有限公司"
                    },
                    {
                        id: 364,
                        name: "广州耀怡生物科技有限公司"
                    },
                    {
                        id: 367,
                        name: "西基（上海）生物科技有限公司"
                    },
                    {
                        id: 374,
                        name: "上海南方模式生物科技股份有限公司"
                    },
                    {
                        id: 384,
                        name: "广州达弘生物科技有限公司"
                    },
                    {
                        id: 427,
                        name: "广州巨维商贸有限公司"
                    },
                    {
                        id: 435,
                        name: "北京华夏远洋科技有限公司"
                    },
                    {
                        id: 452,
                        name: "赛澜生物技术（杭州）有限公司"
                    },
                    {
                        id: 499,
                        name: "北京博奥森生物技术有限公司"
                    },
                    {
                        id: 509,
                        name: "上海隐白生物科技有限公司"
                    },
                    {
                        id: 539,
                        name: "广州君胜生物科技有限公司"
                    },
                    {
                        id: 563,
                        name: "北京盛科博源生物科技有限公司"
                    },
                    {
                        id: 568,
                        name: "上海子实生物科技有限公司"
                    },
                    {
                        id: 588,
                        name: "杭州昊鑫生物科技股份有限公司"
                    },
                    {
                        id: 59,
                        name: "广州市搏克生物技术有限公司"
                    },
                    {
                        id: 741,
                        name: "广州萃本生物科技有限公司"
                    },
                    {
                        id: 76,
                        name: "武汉聚能慧达生物有限公司"
                    },
                    {
                        id: 796,
                        name: "广州齐凯生物科技有限公司"
                    },
                    {
                        id: 868,
                        name: "广州睿日生物科技有限公司"
                    },
                    {
                        id: 911,
                        name: "武汉华美生物工程有限公司"
                    },
                    {
                        id: 95,
                        name: "广州佰熙生物技术有限公司"
                    }
                ],
                levels: [
                    {
                        id: 100,
                        name: "全国总代理"
                    },
                    {
                        id: 1,
                        name: "一级代理"
                    },
                    {
                        id: 0,
                        name: "生产厂家"
                    },
                    {
                        id: 4,
                        name: "经销"
                    }
                ],
                specifications: [
                    "100ul",
                    "10mg",
                    "5mg",
                    "50mg",
                    "100mg",
                    "50ul",
                    "200ul",
                    "10mM/1mL",
                    "96T",
                    "2mg",
                    "200mg",
                    "25mg",
                    "1mg",
                    "1盒",
                    "30ul",
                    "10 mM * 1 mL (in DMSO)",
                    "48T",
                    "500ul菌液",
                    "20mg",
                    "500mg",
                    "1.0 mg/vial",
                    "1×96 well",
                    "2ug",
                    "96T*5",
                    "96T*50",
                    "100ug",
                    "1g",
                    "1mg/vial",
                    "30ug/ul",
                    "400ul",
                    "0.5 mg/vial",
                    "20ug",
                    "50ug",
                    "5g",
                    "5ug",
                    "100 tests",
                    "100 µg",
                    "1000mg",
                    "100T,1ml",
                    "10^6 cells/tube",
                    "10ug",
                    "1ml",
                    "1.0 mg/vial",
                    "10 UG",
                    "250mg",
                    "25T",
                    "400 µl",
                    "50 UG",
                    "80 samples",
                    "100T",
                    "100次",
                    "10MG",
                    "1MG",
                    "1x 10^6 cells/瓶",
                    "2管",
                    "48 tests",
                    "50G",
                    "50MG",
                    "50T",
                    "5MG",
                    "96 assays",
                    "96 tests",
                    "96t",
                    "T25",
                    "0,05 ml",
                    "0.1 mg",
                    "1.0 ml",
                    "100G",
                    "100MG",
                    "10G",
                    "1KG",
                    "1g/vial",
                    "1支/包，150支/箱",
                    "200 µg/ml",
                    "25 UG",
                    "25 tests",
                    "2500mg",
                    "250G",
                    "4 samples",
                    "48 assays",
                    "48t",
                    "5.0 mg/vial",
                    "5.0 mg/vial",
                    "500 tests",
                    "5000mg",
                    "50T,0.5ml",
                    "瓶",
                    "\t20 µl",
                    "----",
                    "-----",
                    "/",
                    "0.05ml",
                    "0.1ml",
                    "0.2ML",
                    "1 mg",
                    "1*10^6个/vial",
                    "1.0 A260 units",
                    "1.5Ml ",
                    "10 µL",
                    "100 Tests"
                ],
                categoryIds: [
                    {
                        id: 243,
                        name: "细胞生物学"
                    },
                    {
                        id: 101,
                        name: "培养/冻存类"
                    },
                    {
                        id: 102,
                        name: "PCR/电泳类"
                    },
                    {
                        id: 229,
                        name: "免疫学"
                    },
                    {
                        id: 107,
                        name: "移液类"
                    },
                    {
                        id: 109,
                        name: "玻璃/石英/陶瓷器皿"
                    },
                    {
                        id: 112,
                        name: "橡胶/塑料计量/储液容器"
                    },
                    {
                        id: 211,
                        name: "生物医学服务"
                    },
                    {
                        id: 117,
                        name: "色谱柱"
                    },
                    {
                        id: 216,
                        name: "常规试剂"
                    },
                    {
                        id: 217,
                        name: "分子生物学"
                    },
                    {
                        id: 231,
                        name: "蛋白组学"
                    },
                    {
                        id: 542,
                        name: "微生物学"
                    },
                    {
                        id: 251,
                        name: "动物种类"
                    },
                    {
                        id: 253,
                        name: "动物实验工具"
                    },
                    {
                        id: 613,
                        name: "安全防护类"
                    }
                ]
            };
            return new Promise((resolve, reject) => {
                resolve(data);
            });
        }
        let url = `/search/products`;
        let params = {
            brandIds: [],
            brandName: "",
            casNo: "",
            categoryIds: [],
            city: "",
            key: "",
            levels: [],
            maxPrice: "",
            minPrice: "",
            orgId: "2", //登录的单位ID
            pageSize: 20,
            searchAfter: null,
            specifications: [],
            suppIds: [],
            suppName: ""
        };

        return this.searchPost(url, params);
    },

    //商品详情
    getProductInfo(productId) {
        if (dev) {
            let data = {
                code: "0000",
                message: "success",
                total: 0,
                product: {
                    productInGroupBuyingModel: {
                        groupbuyingFlag: false
                    },
                    sn: "100000076544",
                    productNum: "0104-01-11-01",
                    saleAmount: 1,
                    price: 8.0,
                    name: "有机玻璃离心管架",
                    photo:
                        "https://www.rjmart.cn/supp/api/upload/image/preImages/product/default.png",
                    specification: "2ml-24（4*6）孔",
                    status: 3,
                    suppId: 131,
                    suppname: "广州市蓝锋生物科技有限公司",
                    agencyName: "生产厂家",
                    dangerousTag: "其他",
                    category: [
                        {
                            id: 1,
                            name: "实验耗材"
                        },
                        {
                            id: 112,
                            name: "橡胶/塑料计量/储液容器"
                        }
                    ],
                    brandId: 270,
                    brandName: "瀚宁",
                    sku: 4,
                    desc: "2ml-24（4*6）孔",
                    lastSaleAmount: 0,
                    priceDirection: [
                        {
                            date: "2019-02-13",
                            price: 8.0
                        },
                        {
                            date: "2019-04-24",
                            price: 8.0
                        }
                    ],
                    photos: [],
                    unifyPrice: 8.0,
                    hasActivity: false,
                    unit: "个",
                    showOriginalPrice: false,
                    exAttributes: [],
                    deliveryTime: 0,
                    delete: false,
                    enter: true,
                    floorPrice: false,
                    negotiatedPrice: false
                }
            };
        }

        let url = global.hasLogin
            ? `/store/api/product/getProductInfo`
            : `/store/api/unlogin/product/productInfo`;

        let params = {
            sn: productId
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //全部商品评价
    getProductComments(productId, pageNo, pageSize) {
        let url = `/store/api/comments/getProductComments`;
        let params = {
            pageNo,
            pageSize,
            productId
        };

        return this.postJson(url, params);
    },

    //本单位商品评价
    getCompanyComments(productId, pageNo, pageSize) {
        let url = `/store/api/comments/getProductComments`;
        let params = {
            orgId: Uts.getCookie("orgId"),
            pageNo,
            pageSize,
            productId
        };

        return this.postJson(url, params);
    },

    //获取供应商信息
    getSupplierInfo(brandId, suppId) {
        let url = global.hasLogin
            ? `/store/api/user/supplier/getSupplierInfo`
            : `/store/api/unlogin/supplier/getSupplierInfo`;
        let params = {
            brandId: brandId,
            id: suppId
        };

        return this.postJson(url, params);
    },

    //供应商商品分类
    findCategory(supplierId) {
        let url = `/store/api/product/category/findCategory`;
        let params = {
            findModel: {
                supplierId
            },
            apiVersion: "V2"
        };

        return this.postJson(url, params);
    },

    //citylist
    cityList() {
        let url = `/search/supp/cityList`;
        let params = {
            orgId: Uts.getCookie("orgId") || ""
        };

        return this.postJson(url, params);
    },

    //获取购车车商品数量
    shoppingCart() {
        let url = `/store/api/user/shoppingCart/LoadShoppingCart`;
        let params = {
            showData: false
        };
        return this.postJson(url, params);
    },

    //判断当前课题组是否冻结
    getFrozenInfo(deptId){
        let url =  `/store/api/overTime/dept/notice/`+deptId;
        console.log("getFrozenInfo",url,{});
        return this.get("",url,{})
    },

    shoppingCartUnlogin() {
        let url = `/store/api/unlogin/product/loadShoppingCart`;
        let shopCartInfoStr = localStorage.getItem("shopCartInfo");
        let productReqs = [];
        if (shopCartInfoStr) {
            let shopCartInfo = JSON.parse(shopCartInfoStr);
            productReqs = shopCartInfo;
        }
        let params = {
            productReqs: productReqs
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //获取购物车商品详细信息
    loadingShopCart() {
        if (!global.hasLogin) {
            return this.shoppingCartUnlogin();
        } else {
            let url = `/store/api/user/shoppingCart/LoadShoppingCart`;
            let params = {};
            ToastUtils.loading();
            return this.postJson(url, params);
        }
    },

    //用户信息
    buyerUserInfo() {
        let url = `/store/api/user/buyer/BuyerCenter`;
        let params = {};
        return this.post(url, params);
    },

    //删除购物车
    deleteShoppingCart(productSns) {
        let url = `/store/api/user/shoppingCart/DeleteFromShoppingCart`;
        let params = {
            productSns
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //关注商品
    interestProduct(productSns) {
        let url = `/store/api/user/buyer/updateInterestProduct`;
        let params = {
            isInteresting: true,
            productSns
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //关注商家
    interestSupplier(supplierId) {
        let url = `/store/api/user/buyer/updateInterestSupplier`;
        let params = {
            isInteresting: true,
            supplierId
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    /**
     * 商品加入购物车
     * @param amount
     * @param productSn
     * @param resetting   数量是否重置，
     * @returns {*}
     */
    saveToShoppingCart(amount, productSn, resetting) {
        let url = `/store/api/user/shoppingCart/SaveToShoppingCart`;

        let params = {};

        if (!resetting) {
            params = {
                isSet: false,
                amount,
                productSn
            };
        } else {
            params = {
                amount,
                productSn
            };
        }
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //获取采购单信息
    loadShoppingCartCard(idArr) {
        let url = `/store/api/order/loadShoppingCard`;
        let params = {
            ids: idArr
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //提交审批
    submitApproval(orderId) {
        let url = `/store/api/order/submitApplication`;
        let params = {
            id: orderId
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    //取消提交
    cancelApproval(orderId) {
        let url = `/store/api/order/apply/revocation`;
        let params = {
            id: orderId
        };
        ToastUtils.loading();
        return this.postJson(url, params);
    },

    // leo begin
    //供应商详情
    getSupplierShopInfo(params) {
        if (dev) {
            const data = {
                code: "0000",
                message: "success",
                total: 0,
                supplier: {
                    id: 11,
                    name: "广州杰特伟生物科技有限公司",
                    mobile: "13725458582",
                    telephone: "020-82388981",
                    qq: "2850361510",
                    address: "广州市天河区中山大道建中路5号海天楼1805室",
                    province: "广东省",
                    city: "广州市",
                    county: "天河区",
                    photo:
                        "http://www.rjmart.cn/download/reagent/image/c19bd248/b2bd9afe-2254-43e7-94e0-87fa84d2470e.jpg",
                    saleAmount: 883,
                    licenseUrl:
                        "http://www.rjmart.cn/download/reagent/image/b24a5870/bdd3616c-f4a9-4af9-b412-312f8930a6ae.jpg",
                    orgUrl:
                        "http://www.rjmart.cn/download/reagent/image/bd6cde30/5c7e60ea-afdf-4c55-8d99-053ce7f4b9d1.jpg",
                    brandAuth: {
                        brand: [
                            {
                                name: "广州杰特伟(JETWAY)",
                                url:
                                    "http://www.rjmart.cn/download/reagent/image/e9e7fd2d/c0881e65-58da-430c-ba88-edf264a9464a.JPG"
                            },
                            {
                                name: "广州杰特伟(JETWAY)",
                                url:
                                    "http://www.rjmart.cn/download/reagent/image/e9e7fd2d/4d25a1e1-0cf0-4c4e-b740-602b7bc31928.JPG"
                            },
                            {
                                name: "广州杰特伟(JETWAY)",
                                url:
                                    "http://www.rjmart.cn/download/reagent/image/e9e7fd2d/9c891d45-4e36-490b-85fd-443628d76da8.JPG"
                            },
                            {
                                name: "新赛美(NCM)",
                                url:
                                    "http://www.rjmart.cn/download/reagent/image/e9e7fd2d/354282de-2b75-4bc9-853f-74e6a8aa4c18.jpg"
                            },
                            {
                                name: "吉锐(Genloci)",
                                url:
                                    "http://www.rjmart.cn/download/reagent/image/e9e7fd2d/bd9d46e5-c3fd-4684-a0f7-b231b7f2e982.png"
                            }
                        ],
                        total: 5
                    },
                    authTime: "2017-09-06 00:00:00"
                }
            };
            return new Promise((resolve, reject) => {
                resolve(data);
            });
        }

        let url = `/store/api/unlogin/supplier/getSupplierInfo`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //店铺优惠券
    getCouponForOrg(params) {
        let url = `/store/api/coupon/getCouponForOrg`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //领取优惠券
    addCouponForOrg(params) {
        let url = `/store/api/coupon/addCouponForOrg`;
        let _params = params;
        return this.postJson(url, _params);
    },
    //店铺商品查询

    getShopProducts(params) {
        let url = global.hasLogin
            ? `/search/products`
            : `/search/platform/products`; //未登陆

        let _params = params;

        ToastUtils.loading();
        return this.searchPost(url, _params);
    },

    //重构后的经费卡列表
    getFundCards(params) {
        let url = `/store/api/fundCard/getFundCards`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //重构后的经费卡列表
    getFundMen(params) {
        let url = `/store/api/fundCard/getFundCardManagers`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //新增经费卡
    addFundCard(params) {
        let url = `/store/api/user/addFundCard`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //收货地址
    getDeliveryAddress(params) {
        let url = `/store/api/user/deliveryAddress/GetDeliveryAddress`;
        let _params = params;
        return this.postJson(url, _params);
    },

    // 新增收货地址
    addDeliveryAddress(params) {
        let url = `/store/api/user/deliveryAddress/AddDeliveryAddress`;
        let _params = params;
        return this.postJson(url, _params);
    },

    // 设为默认地址
    setAsDefault(params) {
        let url = `/store/api/user/deliveryAddress/SetAsDefault`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //课题项目组
    getDeptsW(params) {
        let url = `/store/api/order/getDeptsW`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //生成采购单
    addPurchaseApply(params) {
        let url = `/store/api/order/addPurchaseApply`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //采购提交申请
    submitApplication(params) {
        let url = `/store/api/user/deliveryAddress/submitApplication`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //关注供应商
    updateInterestSupplier(params) {
        let url = `/store/api/user/buyer/updateInterestSupplier`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //获取店铺商品分类
    getCategory(params) {
        let url = `/store/api/product/category/findCategory`;
        let _params = params;
        return this.postJson(url, _params);
    },

    //新增地址
    AddDeliveryAddress(params) {
        let url = `/store/api/user/deliveryAddress/AddDeliveryAddress`;
        let _params = params;
        return this.postJson(url, _params);
    }
    // leo end
};
